package com.shushan.invitecode.bean;

import com.android.net.bean.NetBaseBean;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * @ClassName: patchBean
 * @Desciption: 补签Bean
 * @author: yichaohua
 * @date: 2018-09-15
 */
public class PatchBean extends NetBaseBean {

    public int id;
    public String create_time;
    public int is_use;//0 没使用过 1使用过
    public int user;//0、表示好友 1、表示自己
    public double money;
    public String phone;//好友的手机号

    @Override
    public void initByJson(JSONObject jsonObject) throws JSONException {
        id = jsonObject.optInt("id",0);
        create_time = jsonObject.optString("create_time","");
        is_use = jsonObject.optInt("is_use",0);
        user = jsonObject.optInt("user",0);
        money = jsonObject.optDouble("money",0);
        phone = jsonObject.optString("phone","");
    }
}
